package com.spring.demo4.eg3;

import org.springframework.aop.ThrowsAdvice;

/**
 * @author vhans
 */
public class RegisterThrowsAdvice implements ThrowsAdvice {
    public void afterThrowing(Exception exception) {
        System.out.println("Exception caught: " + exception.getMessage());
    }
}
